<?php
ini_set('display_errors',1);
set_time_limit(0); 
include_once dirname(dirname(__FILE__)).'/mgtv_init.php';
include_once dirname(dirname(__FILE__)).'/fjyd/init.php';
i_echo('start...');
//c2_task_model::resend_c2_again();
	$db = nn_get_db(NL_DB_READ);
	//$db->open();
	$sql = "select * from nns_mgtvbk_c2_log where nns_notify_result='-1' and nns_task_type='Program' limit 100 ";
	$all = nl_db_get_all($sql,$db);	
	//if($all==false) return false;	
	foreach($all as $item){
		c2_task_model::execute_c2_again($item['nns_id']);
	}
i_echo('end...');